from django.urls import path
from rest_framework.routers import DefaultRouter

from cart.views import CartView, CartAllView, CartDelByuser, CartUpdateOne, CartUpdateAll, CartDelByid, CommentsView, \
    CommentAdd

urlpatterns = [
    path('add/',CartView.as_view()),
    path('cart/',CartAllView.as_view()),
    path('updateone/',CartUpdateOne.as_view()),
    path('updateall/',CartUpdateAll.as_view()),
    path('delByuser/',CartDelByuser.as_view()),
    path('delone/',CartDelByid.as_view()),
    path('commentadd/',CommentAdd.as_view()),
    path('comment/',CommentsView.as_view()),
]

# router = DefaultRouter()
# router.register('comment', CommentsView, basename='comment')
# urlpatterns += router.urls
